package com.gouwudai.table.tag;

import org.extremecomponents.table.bean.Column;
import org.extremecomponents.table.cell.AbstractCell;
import org.extremecomponents.table.core.TableModel;

import com.gouwudai.gobbs.common.Arguments;
import com.litt.core.common.Utility;

/**
 * 表格扩展，需配合Arguments.getDictParamName方法和OSCacheManager缓存对象
 * @author admin
 *
 */
public class DictParamCellTag extends AbstractCell  {

	@Override
	protected String getCellValue(TableModel model, Column column) {
		String dictValue = column.getPropertyValueAsString();	//属性值	
		String dictType = column.getParse();	//参数类型名称		
		return Arguments.getDictParamName(dictType+"."+Utility.parseInt(dictValue,-1));
	}


}
